// 函数组合满足结合律

const _ = require('lodash')


// const test = _.flowRight(_.toUpper, _.first ,_.reverse)
// const test = _.flowRight(_.toUpper,  _.flowRight(_.first ,_.reverse) )

const test = _.flowRight(_.flowRight(_.toUpper, _.first),  _.reverse )

console.log(test(['first','second','third']))